//
//  RequestListBaseData.h
//  QinjinProject
//
//  Created by Michael on 14-9-13.
//  Copyright (c) 2014年 ___Michael___. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "RequestBaseData.h"

#define kErrorInt   -1
#define kLoadMoreStartPage   1

typedef void (^PageSuccessBlock)(AFHTTPRequestOperation *operation, id responseObject, BOOL haveNextPage);

@interface RequestListBaseData : RequestBaseData

@property(nonatomic,strong)NSMutableArray *dataArray;

@property(nonatomic)BOOL needLoadMore;
@property(nonatomic,strong)NSString * strLastId;
@property(nonatomic)int requestPage;
@property(nonatomic)BOOL loadMoreUsePage;
@property(nonatomic)BOOL canLoadMore;
//@property(nonatomic,strong)NSString * strDateKet;//分页必传数组数据对应的key

//记录上次刷新的时间戳-定时刷新
@property(nonatomic) int lastRequestDate;

-(void)loadPageData:(void (^)(AFHTTPRequestOperation *operation, id responseObject, BOOL haveNextPage))success
            failure:(void (^)(AFHTTPRequestOperation *operation, NSError *error))failure;


@end





